package com.such.kit.database.dialect;

import com.such.kit.resource.support.ReadResource;

/**
 * @作者 SUCH
 * @日期 2017-8-25 下午4:41:58
 * @描述 数据库数据格式工厂
 */
public class FormatFactory {

	/** DATE8 [format_date8]：20170825 */
	public final String DATE8;
	/** DATE10 [format_date10]：2017-08-25 */
	public final String DATE10;
	/** DATATIME14 [format_datatime14]：20170825154530 */
	public final String DATETIME14;
	/** DATATIME19 [format_datatime19]：2017-08-25 15:45:30 */
	public final String DATETIME19;
	/** TIMESTAMP17 [format_timestamp17]：20170825154530500 */
	public final String TIMESTAMP17;
	/** TIMESTAMP23 [format_timestamp23]：2017-08-25 15:45:30.500 */
	public final String TIMESTAMP23;

	public FormatFactory(String resourceName) {
		this.DATE8 = ReadResource.getValue(resourceName, "format_date8");
		this.DATE10 = ReadResource.getValue(resourceName, "format_date10");
		this.DATETIME14 = ReadResource.getValue(resourceName, "format_datetime14");
		this.DATETIME19 = ReadResource.getValue(resourceName, "format_datetime19");
		this.TIMESTAMP17 = ReadResource.getValue(resourceName, "format_timestamp17");
		this.TIMESTAMP23 = ReadResource.getValue(resourceName, "format_timestamp23");
	}

}
